projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03c2202
)
gtk-demo: Make gridview demo use rubberbanding
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 23 Dec 2019 19:57:39 +0000
(14:57 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 3 Jun 2020 17:34:28 +0000
(13:34 -0400)
demos/gtk-demo/listview_colors.c
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/listview_colors.c
b/demos/gtk-demo/listview_colors.c
index 233d11af5dd60184d0dcbae63075b6762a8e15c9..c67f4ee4e8ede3a0f7cddbbe3b3967c245a3e3c0 100644
(file)
--- a/
demos/gtk-demo/listview_colors.c
+++ b/
demos/gtk-demo/listview_colors.c
@@
-422,9
+422,10
@@
create_color_grid (void)
g_object_unref (factory);
gtk_grid_view_set_max_columns (GTK_GRID_VIEW (gridview), 24);
+ gtk_grid_view_set_enable_rubberband (GTK_GRID_VIEW (gridview), TRUE);
model = G_LIST_MODEL (gtk_sort_list_model_new (create_colors_model (), NULL));
- selection = G_LIST_MODEL (gtk_
no
_selection_new (model));
+ selection = G_LIST_MODEL (gtk_
multi
_selection_new (model));
gtk_grid_view_set_model (GTK_GRID_VIEW (gridview), selection);
g_object_unref (selection);
g_object_unref (model);